<div class="art-block">
  <div class="art-block-body">
    <div class="art-blockheader">
      <div class="l"></div>
      <div class="r"></div>
      <h3 class="t">Đăng nhập</h3>
    </div>
    <div class="art-blockcontent">
      <div class="art-blockcontent-tl"></div>
      <div class="art-blockcontent-tr"></div>
      <div class="art-blockcontent-bl"></div>
      <div class="art-blockcontent-br"></div>
      <div class="art-blockcontent-tc"></div>
      <div class="art-blockcontent-bc"></div>
      <div class="art-blockcontent-cl"></div>
      <div class="art-blockcontent-cr"></div>
      <div class="art-blockcontent-cc"></div>
      <div class="art-blockcontent-body"> 
      <?php if($_SESSION[SALT_USER.'_LOGIN']!="OK") {?>
        <form action="../thanh-vien/dang-nhap.html" method="post" name="login" id="form-login" >
          <fieldset class="input">
            <p id="form-login-username">
              <label for="modlgn_username">Tên đăng nhập<?php //echo $_COOKIE['ten_dang_nhap_ghi_nho'];exit;?></label>
              <br />
              <input id="modlgn_username" value="<?php echo $_COOKIE['ten_dang_nhap_ghi_nho'];?>" type="text" name="ten_dang_nhap" class="inputbox" size="18" />
            </p>
            <p id="form-login-password">
              <label for="modlgn_passwd">Mật khẩu</label>
              <br />
              <input id="modlgn_passwd" type="password" value="<?php echo base64_decode(base64_decode(base64_decode($_COOKIE['mat_khau_ghi_nho'])));?>" name="mat_khau" class="inputbox" size="18" />
            </p>
            <p id="form-login-remember">
              <label for="modlgn_remember">Ghi nhớ mật khẩu</label>
              <input id="modlgn_remember" type="checkbox" title="Ghi nhớ mật khẩu" name="ghi_nho" class="inputbox" value="yes" />
            </p>
            <span class="art-button-wrapper"> <span class="art-button-l"> </span> <span class="art-button-r"> </span>
            <input type="submit" name="submit" class="art-button" value="Đăng nhập" />
            </span>
          </fieldset>
          <ul>
            <li><p><a href="../thanh-vien/quen-mat-khau.html">Quên mật khẩu?</a></p></li>
            <li><p><a href="../thanh-vien/dang-ky-moi.html">Đăng ký thành viên</a></p></li>
          </ul>
        </form>
        <?php } else {?>
        <table border="0">
            <tr><td><p style="color:blue">Xin chào: <span style="font-weight:bold"><a style="color:blue" title="Cặp nhật thông tin" href="../thanh-vien/cap-nhat-thong-tin.html"><?php echo $_SESSION['TEN_USER']?></a></span></p></td></tr>
            <tr><td><p><a href="../thanh-vien/dang-xuat.html">Đăng xuất</a></p></td></tr>
            <tr><td><p><a href="../thanh-vien/doi-mat-khau.html">Đổi mật khẩu</a></p></td></tr>
        </table>
        <?php }?>
        <div class="cleared"></div>
      </div>
    </div>
    <div class="cleared"></div>
  </div>
</div>
